import org.omg.CORBA.WStringSeqHelper;

public class Circle {
        double r=0;
    String color="null";

    //圆心
    double center_x=0;
    double center_y=0;

    public Circle(){

    }

    public Circle(double r, String color,double center_x,double center_y){
        this.r=r;
        this.color=color;
        this.center_x=center_x;
        this.center_y=center_y;


    }

    public void Move(double x,double y){
        this.center_x+=x;
        this.center_y+=y;
    }



    public double Perimeter(){
        double perimeter=2*Math.PI*r;
        return perimeter;
    }

    public double Area(){
        double s=Math.PI*r*r;
        return s;
    }
    public void display(  ){
        System.out.println("The Circle radius is:" +r);
        System.out.println("The Circle color is:" +color);
    }

    public double getR() {
        return r;
    }

    public void setR(double r1) {
        r = r1;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color1) {
        color = color1;
    }
}
